package com.dfrz.ch10.supertest;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/20 15:04
 * 描述:
 */
public class MidStu extends Stu {

    private boolean canBike;//是否会汽车

    public MidStu() {
    }

    public MidStu(String name, int age, float fee, boolean canBike) {
        super(name, age, fee);
        this.canBike = canBike;
    }

    @Override
    public String toString() {
        return "MidStu{" +
                "name='" + getName() + '\'' +
                ", age=" + getAge() +
                "fee=" + getFee() +
                "canBike=" + canBike +
                '}';
    }

    public boolean isCanBike() {
        return canBike;
    }

    public void setCanBike(boolean canBike) {
        this.canBike = canBike;
    }
}
